package org.kisekiproject.instance {
	/**
	 * @author mikael
	 */
	public class PropertyDefinition {

		private var _name : String;
		private var _type : String;
		//private var _itemDefinition:PropertyDefinition;

		/**
		 * Constructor.
		 */
		public function PropertyDefinition(name:String, type:String/*, arrayType:String*/) {
			_name=name;
			_type=type;

/*			if (_type=="Array") {
				_itemDefinition=new PropertyDefinition(null,arrayType,null);
			}*/
		}

		/**
		 * To string.
		 */
		public function toString():String {
			return "[PropertyDefinition " + _name + "]";
		}

		/**
		 * Get type.
		 */
		public function get type():String {
			return _type;
		}

		/**
		 * Get name.
		 */
		public function get name() : String {
			return _name;
		}

		/**
		 * Get array type.
		 */
/*		public function get itemDefinition():PropertyDefinition {
			return _itemDefinition;
		}*/
	}
}
